package com.sll.hosptials.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sll.hosptials.controller.req.AddDictTypeReq;
import com.sll.hosptials.controller.req.DictTypePageReq;
import com.sll.hosptials.controller.req.IdReq;
import com.sll.hosptials.controller.req.IdsReq;
import com.sll.hosptials.model.DictType;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author shaolulu
* @description 针对表【dict_type(字典类型)】的数据库操作Service
* @createDate 2024-01-04 15:47:03
*/
public interface DictTypeService extends IService<DictType> {

    /**
     * 新增字典类型
     * @param req
     * @return
     */
    Boolean addDictType(AddDictTypeReq req);

    /**
     * 查询字典类型详情
     * @param req
     * @return
     */
    DictType detail(IdReq req);

    /**
     * 根据ids删除字典类型
     * @param req
     * @return
     */
    Boolean delete(IdsReq req);

    /**
     * 分页获取字典类型
     * @param req
     * @return
     */
    Page<DictType> page(DictTypePageReq req);

    /**
     * 获取字典类型列表
     * @return
     */
    List<DictType> list();

}
